package net.biancheng.exception;

/**
 * @author: lb
 * @date: 2023/8/9 15:18
 * @desc: 基础异常类
 **/
public class BaseException extends RuntimeException{

    private static final long serialVersionUID = 1L;

    /**
     * 错误消息
     */
    private String defaultMessage;

    public BaseException(String message) {
        this.defaultMessage = message;
    }

    @Override
    public String getMessage()
    {
        return defaultMessage;
    }

    public String getDefaultMessage()
    {
        return defaultMessage;
    }

}
